using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Transaction
{
   
    public class FixincomesecuritiesAmortizeDetail 
    {
        #region Properties
              // FIXINCOMESECURITIES_AMORTIZE_DETAIL_ID
        public virtual int FixincomesecuritiesAmortizeDetailID { set; get; }
      // FIXINCOMESECURITIES_AMORTIZE_HEADER_ID
        public virtual int? FixincomesecuritiesAmortizeHeaderID { set; get; }
      // TYPE
        public virtual String Type { set; get; }
      // PERIOD
        public virtual int? Period { set; get; }
      // AMORTIZE_DATE
        public virtual DateTime? AmortizeDate { set; get; }
      // NO_OF_DAYS
        public virtual int? NOOFDays { set; get; }
      // COUPON
        public virtual decimal? Coupon { set; get; }
      // INTEREST
        public virtual decimal? Interest { set; get; }
      // AMORTISE_OF_INTEREST
        public virtual decimal? AmortiseOFInterest { set; get; }
      // DISCOUNT_PREMIUM
        public virtual decimal? DiscountPremium { set; get; }
      // BOOK_VALUE
        public virtual decimal? BookValue { set; get; }

        #endregion

        

        public override bool Equals(object obj)
        {
            if(obj == null)
                return false;
            if(obj.GetType() != typeof(FixincomesecuritiesAmortizeDetail) && !(obj is FixincomesecuritiesAmortizeDetail))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}",FixincomesecuritiesAmortizeDetailID);
        }

    }


}